<div id="addHousekeepingResourceModel" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-body">
                <h3 class="m-t-none m-b ">添加</h3>
                <div class="ibox-content">
                    <div>
                        <div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">物品类型</label>
                                <div class="col-sm-10">
                                    <select class="custom-select" v-model="addHousekeepingResourceInfo.resTypeId" @change="setAddResTypeName(addHousekeepingResourceInfo.resTypeId)">
                    <option selected disabled value="">必填，请选择物品类型</option>
                    <option v-for="(item,index) in housekeepingResourceManageInfo.resourceStoreTypes" :value="item.rstId">
                      {{item.name}}</option>
                  </select>
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">费用大类</label>
                                <div class="col-sm-10">
                                    <select class="custom-select" v-model="addHousekeepingResourceInfo.feeTypeCd">
                    <option selected disabled value="">必填，请填写费用大类</option>
                    <option v-for="(item,index) in addHousekeepingResourceInfo.housekeepingFeeTypes"
                      :value="item.feeTypeCd">
                      {{item.typeName}}</option>
                  </select>
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">物品名称</label>
                                <div class="col-sm-10">
                                    <input v-model="addHousekeepingResourceInfo.resName" type="text" placeholder="必填，请填写物品名称" class="form-control">
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">物品编码</label>
                                <div class="col-sm-10">
                                    <input v-model="addHousekeepingResourceInfo.resCode" type="text" placeholder="必填，请填写物品编码" class="form-control">
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">成本价</label>
                                <div class="col-sm-10">
                                    <input v-model="addHousekeepingResourceInfo.costPrice" type="text" placeholder="必填，请填写成本价" class="form-control">
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">出售价</label>
                                <div class="col-sm-10">
                                    <input v-model="addHousekeepingResourceInfo.price" type="text" placeholder="必填，请填写出售价" class="form-control">
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">库存</label>
                                <div class="col-sm-10">
                                    <input v-model="addHousekeepingResourceInfo.stock" type="text" placeholder="必填，请填写库存" class="form-control">
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">供应商名称</label>
                                <div class="col-sm-8">
                                    <select class="custom-select" v-model="addHousekeepingResourceInfo.supplierId" @change="setAddSupplierName(addHousekeepingResourceInfo.supplierId)">
                    <option selected disabled value="">必填，请选择供应商</option>
                    <option v-for="(item,index) in addHousekeepingResourceInfo.resourceSuppliers" :value="item.rsId">
                      {{item.supplierName}}</option>
                  </select>
                                </div>
                                <label class="col-sm-2 col-form-label">
                                <a href="javascript:void(0)" v-on:click="_addSupplier()">
                                新增供应商
                                </a>
                                </label>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">描述</label>
                                <div class="col-sm-10">
                                    <textarea v-model="addHousekeepingResourceInfo.remark" placeholder="选填，请填写描述" class="form-control"></textarea>
                                </div>
                            </div>

                            <div class="ibox-content">
                                <button class="btn btn-primary float-right" type="button" v-on:click="saveHousekeepingResourceInfo()"><i
                    class="fa fa-check"></i>&nbsp;保存</button>
                                <button type="button" class="btn btn-warning float-right" style="margin-right:20px;" data-dismiss="modal">取消</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>